All Questions
2 questions
0votes
2answers
107views
Is there an algorithm to avoid getting in hundreds of datapoints from API to represent a bar graph?
I am showing a graph on HTML5 canvas using the flot charting library for a between a start date and an end date. It's fine as long as the period is less than a year or so but if the user selects a big ...
18votes
5answers
11kviews
Algorithm for flattening overlapping ranges
I am looking for a nice way of flattening (splitting) a list of potentially-overlapping numeric ranges. The problem is very similar to that of this question: Fastest way to split overlapping date ...